<?php
class attrtagController extends Controller{
    public static function _right(){
        return array(
            array('广告管理'),
            array('广告添加','add,add_'),
            array('广告列表','mylist'),
            array('广告编辑','mod,mod_'),
            array('广告删除','del'),
            array('静态生成','html,html_'),
            array('批量操作','bit_op'),
        );
    }
	public function __construct(){
		parent::__construct();
		
	}
	public function s(){
		return array('attrtag');
	}
	public function index(){
	
	}
	//属性列表
	public function mylist(){
		
		$condition=array();
		$extra='';
		$return=$this->s_0->mylist($condition,$extra);
		$widget=load_service('a_widget',P_SVC);
		
		include($this->viewer_dir.'attrtag/mylist.php');
	}
	//属性对应的文章
	public function arc_list(){
		$tag=trim($_GET['tag']);
		if(!$tag){
			jump('attrtag','mylist');
		}
		$r=$this->s_0->is_exist($tag);
		if(!$r) jump('attrtag','mylist');
		$this->s_0->update_hits();
		
		$taginfo=$this->s_0->get_taginfo();
		
		$condition=array();
		$condition['tag']=$tag;
		$extra=" and `a`.`status`='1' and `l`.`tag`='{$tag}' ";
		$return=$this->s_0->arc_list($condition,$extra);
		
		$in_=$this->s_0->in_($tag);
		
		$widget=load_service('a_widget',P_SVC);
		
		include($this->viewer_dir.'attrtag/arc_list.php');
	}

//
}